home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / DSHJ2 / DEFS.H < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-10  |  2.1 KB  |  82 lines

  1. /*
  2.     Common Defines
  3. */
  4. #define        false        0
  5. #define        true        1
  6. #define        FREAD        0
  7. #define        FWRITE        1
  8. #define        FRDWR        2
  9. #define        NWFIL        0
  10.  
  11. /*    Composer special Keys    */
  12. #define        QL    0x12
  13. #define        QR    0x1c
  14. #define        QC    0x1d
  15.  
  16. #define        DH    0x07
  17. #define        sDH    0x14
  18. #define        sHY    0x0b
  19.  
  20. #define        Rf    0x0c
  21. #define        cr    0x0d
  22. #define        lf    0x0a
  23. #define        srt    0x0f
  24. #define        hrt    0x1f
  25.  
  26. #define        Mdsh    0xf0
  27. #define        Ndsh    0xf7
  28.  
  29. #define        TSP    0xfc
  30. #define        NSP    0xfd
  31. #define        MSP    0xfe
  32.  
  33. #define        STAG    0xf9
  34. #define        ETAG    0xf8
  35. #define        PTAG    0xdf
  36.  
  37. /*    Composer Tag pointers    */
  38. #define        num_tags    6        /* total number of tags    */
  39. #define        COMP        0        /* Cptarget mark tag    */
  40. #define        OVSP        1        /* Overset  mark tag    */
  41. #define        NLTP        2        /* -Lts Rge mark tag    */
  42. #define        PRFP        3        /* Pref Rge mark tag    */
  43. #define        PRFS        4        /* Pref Spc mark tag    */
  44. #define        CPBK        5        /* Cmpbreak mark tag    */
  45.  
  46. /*    Text Window Tag pters    */
  47. #define        mrk_base    0        /* user marks: A,B,C,D    */
  48. #define        WWRP        4        /* screen word wrap tag    */
  49. #define        TMP1        5        /* temporary tag 1    */
  50. #define        TMP2        6        /* temporary tag 2    */
  51. #define        TMP3        7        /* temporary tag 3    */
  52. #define        TMP4        8        /* temporary tag 4    */
  53. #define        HMRK        9        /* block mark start tag    */
  54. #define        top_line    10        /* top window line tag    */
  55. int        wdw_tags;            /* total number of tags    */
  56.  
  57. /*    Text Positions        */
  58. #define        top_row        0        /* top row in window    */
  59. #define        wdw_cols    75        /* # columns fixed...    */
  60. char        wdw_rows;            /* # rows set by screen    */
  61. struct    {
  62.     char    mrow, mcol;            /* window Maximn RowCol    */
  63.     char    row, col;            /* window cursor RowCol    */
  64. } current;
  65.  
  66. /*    Buffer pointers        */
  67. unsigned char    *buf_ptr[num_tags];        /* compos tag array    */
  68. unsigned char    **wdw_ptr;            /* window tag array    */
  69. unsigned char    *buf_start, *buf_end;        /* buffer delimiters    */
  70. unsigned char    *current_char;        /* first char in the 2nd buffer    */
  71. unsigned char    *free_start;        /* first char in the free area    */
  72.  
  73. /*    Externals to avoid type conflicts    */
  74. extern    unsigned long    free_space();
  75.  
  76. /*    BackEnd Defines        */
  77. #define        OFF        0
  78. #define        ON        1
  79. #define        IC        0xc0
  80. #define        SPC        0xc1
  81. #define        CMDCH        0xc2
  82.